package xq.gwt.mvc.model;

import java.io.Serializable;

public class ListItem implements Comparable<ListItem>, Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 8824958766515884070L;
	public String value;
	public String caption;

	@Override
	public String toString(){
		return caption;
	}

	public int compareTo(ListItem o) {
		return this.caption.compareTo(o.caption);		
	}
	
	public ListItem(){}
	
	public ListItem(String value, String caption){
		this.value = value;
		this.caption = caption;
	}
}
